﻿@model VietPremier.Models.GetStyleModel
@{
    ViewBag.Title = "";
}
<script type="text/javascript">
    function AjaxListTravel(idStyle, value) {
        var Style = idStyle;
        var page = value;
        var url = '@Url.Action("AjaxListTravel", "Style")';
        var id = "style-" + idStyle;
        var $dummy = $("#" + id);
        $dummy.load(url, { "idStyle": Style, "page": page }, function (status) {
            var $container = appendContainer();
            if (status != "success") {
                $container.html("error");
            }
            else {
                $container.html($dummy.html());
            }
            $dummy.remove();
        });
    };
    $().ready(function () {
        $(".page-number-listtravel").live("click", function () {
            var page = parseInt($(this).html());
            var Style = $(this).data("state_style");
            AjaxListTravel(Style, page);
            return false;
        });
    });
</script>
<div class="content container-fluid">
    <div class="row-fluid">
        <div class="span3">
            @Html.Partial("_Maps")
            <!--/ .box-->
            @Html.Action("Onlinesupport", "Home")
            <!--/ .support-->
            @*@Html.Action("Spotlight", "Home")*@
            <!--/ .box-->
            @Html.Action("News_Event", "Home")
            <!--/ .box-->
        </div>
        <!--/ .span3-->
        <div class="span9">
            <div class="link-page">
                <a href="@Url.Action("Index", "Home")">Trang chủ&nbsp;<img src="@Url.Content("~/Content/cssFrontEnd/images/iconmt.png")">&nbsp;</a>
                <a href="@Url.Action("Style", "Style")">Phong cách du lịch&nbsp;<img src="@Url.Content("~/Content/cssFrontEnd/images/iconmt.png")">&nbsp;</a>

            </div>
            <div class="box-about">
                @{
                    foreach (var item in Model.listStyle)
                    {
                        var id = "style-" + item.Id;
                    <div class="vietnam">
                        <h5>@item.Name</h5>
                        <div class="row-fluid" id="@id">
                            @Html.Action("ListTravel", "Style", new { idStyle = @item.Id })
                        </div>
                    </div>
                    <!--/ .vietnam-->
                    }
                }
            </div>
            <!--/ .box-about-->
        </div>
    </div>
    <!--/ .row-fluid-->
</div>
<!--/.container-fluid -->

